import VueRouter  from "vue-router"
import Vue from 'vue'
Vue.use(VueRouter)
console.log("hahah")

// 引入路由组件
import Home from '@/views/Home'
import Login from '@/views/Login'
import Register from '@/views/Register'
import Student from '@/views/Student'
// 创建router实例对象，管理一组一组的路由规则
const router = new VueRouter({
    routes:[
        {
            name:'Home',
            path:'/home',
            component:Home,
            
        },
        {
            name:'Student',
            path:'/student',
            component:Student,
        },
        {
            name:'Register',
            path:'/register',
            component:Register,
           
        },
        {
            name:"Login",
            path:'/login',
            component:Login,
            
        },
    ]
})

console.log("xixi")
export default router